<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
	<title></title>
	<link href="/appston/Public/bootstrap/css/bootstrap.min.css" rel="stylesheet">
	<link rel="stylesheet" href="/appston/Public/bootstrap/css/bootstrap-theme.min.css">
    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
    <script src="/appston/Public/bootstrap/js/jquery.min.js"></script>
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="/appston/Public/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<!-- 自动接收update方法传来的user变量用户名：<?php echo ($user["username"]); ?>；
电话：<?php echo ((isset($user["tele"]) && ($user["tele"] !== ""))?($user["tele"]):'没有电话号码'); ?>；-->
<form name="f1" method="post" action="adduser" enctype="multipart/form-data" class="form-horizontal">
<h1 align="center">用户添加</h1>
	<div class="form-group">
		<label for="pic" class="col-md-2 control-label">头像</label>
		<div class="col-md-10">
			<input type="file" name="photo" />
		</div>
	</div>
	<div class="form-group">
		<label for="inputName" class="col-md-2 control-label">用户名</label>
		<div class="col-md-10">
		<input type="text" class="form-control" id="username"  name="username"  placeholder="Name"/>
	</div>
	</div>
	<div class="form-group">
		<label for="inputpass" class="col-md-2 control-label">密码</label>
		<div class="col-md-10">
		<input type="password" class="form-control" id="pass"  name="pass"  placeholder="pass"/>
	</div>
	</div>
	 <div class="form-group">
		<label for="inputpass" class="col-md-2 control-label">再次输入密码</label>
		<div class="col-md-10">
		<input type="password" class="form-control" id="pass2"  name="pass2" value="<?php echo ($user["pass"]); ?>" placeholder="pass2"/>
	</div>
	</div> 
	<div class="form-group">
		<label for="inputName" class="col-md-2 control-label">真实性名</label>
		<div class="col-md-10">
		<input type="text" class="form-control" id="realname"  name="realname"  placeholder="Name"/>
	</div>
	</div>

	<div class="form-group">
		<label for="Email" class="col-md-2 control-label">邮箱</label>
		<div class="col-md-10">
		<input type="email" class="form-control" id="email"  name="email"  placeholder="email"/>
	</div>
	</div>
	<div class="form-group">
		<label for="tele" class="col-md-2 control-label">电话</label>
		<div class="col-md-10">
		<input type="tel" class="form-control" id="tele"  name="tele"  placeholder="tele"/>
	</div>
	</div>
	<div class="form-group">
		<label for="inputintro" class="col-md-2 control-label">自我介绍</label>
		<div class="col-md-10">
			<textarea name="intro" cols="50" rows="5" class="form-control" value=""></textarea>
		</div>
	</div>	


		<div class="form-group">
        <label for="state" class="col-md-2 control-label">状态</label>
        <div class="col-md-2">
            <select class="form-control" name="state" id="state">
                <option value="0">禁用</option>
                <option value="1">普通</option>
                <option value="2">禁言</option>
            </select>
        </div>
    </div>

	
	<div class="form-group">
		<label class="col-md-2 control-label">明星作者</label>
		<div class="col-md-10">
			<label class="radio-inline">
				<input type="radio" name="isstar" id="isstar" value="1">是
			</label>
			<label class="radio-inline">
				<input type="radio" name="isstar" id="isstar" value="0" >否
			</label>
		</div>
	</div>	
	

	<div class="form-group">
		<label class="col-md-2 control-label">首页推荐</label>
		<div class="col-md-10">
			<label class="radio-inline">
				<input type="radio" name="isfirst" id="isfirst" value="1" >是
			</label>
			<label class="radio-inline">
				<input type="radio" name="isfirst" id="isfirst" value="0" >否
			</label>
		</div>
	</div>	
     

     <div class="form-group">
		<label for="inputName" class="col-md-2 control-label">审核信息</label>
		<div class="col-md-10">
		<input type="text" class="form-control" id="verifyinfo"  name="verifyinfo"  placeholder="verifyinfo"/>
	</div>
	</div> 
		
		
		
		<div class="form-group">
		<div class="col-sm-offset-2 col-sm-10">
			<input class="btn btn-default" type="submit" value="提交">
			<input class="btn btn-default" type="reset" value="重置">
		</div>
	</div>
</form>
</body>
</html>